Storage area network attached clustered storage system

ABSTRACT

A storage area network (SAN)-attached storage system architecture is disclosed. The storage system provides strongly consistent distributed storage communication protocol semantics, such as SCSI target semantics. The system includes a mechanism for presenting a single distributed logical unit, comprising one or more logical sub-units, as a single logical unit of storage to a host system by associating each of the logical sub-units that make up the single distributed logical unit with a single host visible identifier that corresponds to the single distributed logical unit. The system further includes mechanisms to maintain consistent context information for each of the logical sub-units such that the logical sub-units are not visible to a host system as separate entities from the single distributed logical unit.

This is a non-provisional application filed under 37 C.F.R. §1.53(b),claiming priority under U.S.C. Section 119(e) to U.S. Provisional PatentApplication Ser. No. 61/538,786 filed Sep. 23, 2011, the entiredisclosure of which is hereby expressly incorporated by reference.

FIELD OF THE INVENTION

At least one embodiment of the present invention pertains to networkstorage systems, and more particularly, to a Storage Area Network(SAN)-attached clustered storage system.

BACKGROUND

A storage controller is a physical processing device that is used tostore and retrieve data on behalf of one or more hosts. A networkstorage controller can be configured (e.g., by hardware, software,firmware, or any combination thereof) to operate as a storage serverthat serves one or more clients on a network, to store and manage datain a set of mass storage devices, such as magnetic or opticalstorage-based disks, tapes, or flash memory. Some storage servers aredesigned to service file-level requests from hosts, as is commonly thecase with file servers used in a network attached storage (NAS)environment. Other storage servers are designed to service block-levelrequests from hosts, as with storage servers used in a storage areanetwork (SAN) environment. Storage servers in a SAN environment organizethe storage into one or more logical units that can be addressed by thehost and be used as containers to store data. Each logical unit can bedivided into a number of fixed size logical blocks, and the host canstore/retrieve data at the granularity of a logical block. Still otherstorage servers are capable of servicing both file-level requests andblock-level requests, as is the case with certain storage servers madeby NetApp®, Inc. of Sunnyvale, Calif., employing the Data ONTAP® storageoperating system.

A network storage system can be an individual storage server thatprovides one or more clients with access to data stored in a massstorage subsystem. Recently, however, with storage capacity demandsincreasing rapidly in almost every business sector, there has been atrend towards the use of clustered network storage systems, to improvescalability. In addition, as more and more business criticalapplications are being deployed on virtualized, shared infrastructure,there has been a trend towards using clustered network storage systemsto improve reliability. In a clustered storage system, two or morestorage server nodes are connected in a distributed architecture suchthat the storage server nodes operate in a coordinated manner to respondto client requests. Each storage server node is in fact a storageserver, although it has a distributed architecture. Two or more suchstorage server nodes are typically connected to form a storage cluster,where each of the nodes in the cluster can communicate with the othernodes in the cluster.

A clustered architecture allows convenient scaling through the additionof more nodes, all capable of communicating with each other. Further, astorage cluster may present a single system image of stored data toclients and administrators, such that the actual location of data can bemade transparent to clients and administrators. However, as the numberof nodes in a cluster increases, maintaining a consistent single systemimage across the nodes of the cluster becomes a challenge as managementand control operations are performed on the cluster resources.

SUMMARY

The storage system architecture and techniques introduced here provide afor presenting a single distributed logical unit, comprising one or morelogical sub-units, as single logical unit of storage to a host system ina SAN-attached clustered storage system. In addition, the techniquesprovide a mechanism to coordinate the activities of the logicalsub-units in such a way that the distributed implementation istransparent to a host system such that the logical sub-units are notvisible to the host as separate entities and the host is presented withconsistent block access protocol semantics to the distributed logicalunit. This enables the distributed logical unit to service requests frommultiple hosts without requiring any modification to the host or blockaccess protocols. In accordance with the techniques introduced here,each logical sub-unit includes a task sub-set, a task sub-manager, and adevice sub-server. The techniques provide a mechanism to coordinate thetask sub-set management activities of the task sub-managers in such away that the task sub-sets make up a single distributed task set that ismaintained for the distributed logical unit. The techniques also providea mechanism to coordinate the execution of commands from the distributedtask set by the device sub-servers such that semantically correct taskexecution atomicity is maintained within the distributed logical unit.

Maintaining consistent global context information among the logicalsub-units such that the logical sub-units are not visible to a hostsystem as separate entities from the single distributed logical unitallows the SAN-attached clustered storage system to be expanded and/ormodified without having to disrupt host system access. Further, becauseof the distributed nature of the logical unit, the system is more easilyscalable and is more reliable or tolerant to faults in various hardwareor software components that together form the SAN-attached clusteredstorage system.

The techniques further provide a mechanism for subsystems and/or objectsof the storage system to coordinate transactions that modify the sharedstate in peer instances of the subsystems and/or objects throughout thecluster. Using the techniques introduced here, a cluster transactionmanager abstracts cluster subsystems and objects into groups that sharestate. Transactions that affect the state of any given group arecoordinated by the cluster transaction manager using a multi-phasevoting process to ensure consistency of the shared state among themembers of the group.

The techniques include receiving, by a group coordinator, a proposalfrom a client of the cluster transaction manager. The group coordinatorinitiates the multi-phase voting procedure among the members of a groupaffected by the proposal. The group coordinator gathers the responsesfrom each of the group members and determines whether to commit theproposal or to discard the proposal. The group coordinator then providesthe result of the voting procedure to the members of the group so thateach of the group members can update its local instance of the sharedstate according to the result.

The techniques further provide a mechanism for nodes of SAN-attachedcluster storage system to coordinate the origination of and response toheartbeat proposals used to determine whether each of the nodes in thecluster are active. Using the techniques introduced here, a mastercluster quorum manager originates a heartbeat proposal using acommunication system implemented by each node's cluster transactionmanager. The master cluster quorum manager then determines, based onresponses to the heartbeat proposal, which cluster nodes are in-quorumor out-of-quorum and notifies the cluster quorum manager of each node ofthe quorum status.

The techniques also include isolating an out-of-quorum node from thein-quorum nodes such that consistency is maintained in the in-quorumnodes. The isolation is implemented by sending a message from thecluster quorum manager to the cluster transaction manager in each node.The message identifies which nodes are in-quorum and which nodes areout-of-quorum. The cluster transaction manager of each of the in-quorumnodes can then block proposals from out-of-quorum nodes. Similarly, thetechniques include a storage takeover procedure initiated by the clusterquorum manager of an in-quorum storage node that is a partner of anout-of-quorum node, such that the host requests for the storage on theout-of-quorum node can be serviced by the in-quorum partner node.

Other aspects of the techniques summarized above will be apparent fromthe accompanying figures and from the detailed description whichfollows.

BRIEF DESCRIPTION OF THE DRAWINGS

One or more embodiments of the present invention are illustrated by wayof example and not limitation in the figures of the accompanyingdrawings, in which like references indicate similar elements.

FIG. 1 shows an example of a storage area network (SAN) attachedclustered storage system.

FIG. 2 illustrates an example of a storage operating system that can beused in a SAN-attached clustered storage system.

FIG. 3 shows an example block diagram of the components of a clustertransaction manager in the D-module of a cluster node.

FIG. 4 is a flow diagram of a process for coordinating and processing avoting proposal in a SAN-attached clustered storage system.

FIGS. 5A and 5B collectively are a flow diagram of a process forcoordinating and processing a group join proposal in a SAN-attachedclustered storage system.

FIG. 6 is a flow diagram of a process for coordinating and processing agroup leave proposal in a SAN-attached clustered storage system.

FIG. 7 is a flow diagram of a process for coordinating and processing aninformative proposal in a SAN-attached clustered storage system.

FIG. 8 is a flow diagram of a process for coordinating and processing aread proposal in a SAN-attached clustered storage system.

FIG. 9 is a flow diagram of a process for recovering from a failurecondition in a SAN-attached clustered storage system.

FIG. 10 shows an example block diagram of the components of a SCSItarget in an S-module of a cluster node.

FIG. 11 is a flow diagram of a process for implementing a distributedlogical unit in a clustered storage system in a SAN environment.

FIG. 12 is a flow diagram of a process for maintaining consistentcontext information between logical sub-units of a distributed logicalunit.

FIG. 13 is a flow diagram of a process for coordinating and performing aheartbeat proposal in a SAN-attached clustered storage system.

FIG. 14 is a flow diagram of a process determining whether a node isconsidered active in a SAN-attached clustered storage system.

FIG. 15 is a flow diagram of a process for determining whether acollection of active and available cluster nodes constitute a quorum ina SAN-attached clustered storage system.

FIG. 16 is a flow diagram of a process for coordinating an informativeproposal in a SAN-attached clustered storage system.

FIG. 17 is a flow diagram of a process for isolating and taking over thestorage of an out-of-quorum node.

FIG. 18 is a block diagram of a system that can be used to implement oneor more nodes of a clustered storage system in a SAN environment.

DETAILED DESCRIPTION

References in this specification to “an embodiment”, “one embodiment”,or the like, mean that the particular feature, structure orcharacteristic being described is included in at least one embodiment ofthe present invention. Occurrences of such phrases in this specificationdo not necessarily all refer to the same embodiment.

FIG. 1 shows an example of a clustered storage system in a storage areanetwork (SAN) environment, which includes two or more cluster nodes 102a-102 n and a cluster interconnect 104. At least one host 106 isconnected with the cluster nodes 102. However, to facilitate descriptiononly a single host is depicted in FIG. 1.

As shown in FIG. 1, each cluster node 102 of the clustered storagesystem is coupled with a corresponding mass storage device 108 a-108 n.Typically, each cluster node 102 is coupled with two or more massstorage devices. However, to facilitate description a single massstorage device 108 a-108 n coupled with each corresponding cluster node102 a-102 n is depicted in FIG. 1. The mass storage devices 108 can beof any one or more of various types of storage, such as magnetic disks,flash memory, solid-state drives (SSDs), tape storage, etc., and can beimplemented as a single device, multiple devices, (e.g., a RAID group),or any other configuration of devices.

The SAN-attached clustered storage system can make some or all of thestorage space on the mass storage devices 108 available to the host 106.For example, the host 106 can access a cluster node 102 of theSAN-attached clustered storage system using well known protocols, suchas Internet Small Computer System Interface (iSCSI), Fibre ChannelProtocol (FCP), or Fibre Channel over Ethernet (FCoE). The cluster node102 can present or export data stored on the mass storage devices 108 aslogical units (LUNs), for example, to the host 106. A cluster node 102in the SAN-attached clustered storage system can communicate with eachother cluster node 102 over the cluster interconnect 104, which can beimplement, for example, as a Gigabit Ethernet switch. In one embodiment,the cluster nodes 102 are configured as high availability pairs.However, it is understood that other high availability configurationsare possible.

FIG. 2 illustrates an example of a storage operating system, which canbe used to implement a node of a SAN-attached clustered storage systemsuch as shown in FIG. 1. In the illustrated embodiment the storageoperating system implements a cluster node 102 as a protocol (e.g., SAN)module (S-module 202), a data module (D-module 204), and a managementmodule 206. The S-module 202, D-Module 204, and management module 206may be implemented on the same or separate storage devices (e.g.,storage controllers) or computers. The S-module 202 includes multiplefunctional components that provide a data path for a host to accessinformation stored on the node using block access protocols, such asiSCSI, FCP, or FCoE. The functional components in combination withunderlying processing hardware form the S-module 202. While described asfunction components of the S-module herein, the functional componentscan be logically located essentially any place in the storage operatingsystem.

The functional components in the S-module 202 include a SCSI targetinstance (SCSI-T) 212 that includes a SCSI engine that performs the coreSCSI protocol processing. The SCSI target instance 212 also includesfunctionality that allows the SCSI engine to work with other subsystemsand components. The SCSI target instance 212 interacts with peer SCSItarget instances on the other cluster nodes. As described in more detailbelow with reference to FIG. 3, each SCSI target instance 212 implementsone or more target sub-devices, which collectively form a singledistributed target device such that a host connected to the SAN sees asingle target device. The functional components of the S-module 202 alsoinclude a SAN manager 214 which handles management operations in theSAN. For example, the SAN manager 214 coordinates cluster wideconfiguration updates. Further, the functional components of theS-module 202 include a cluster interface module 216 which implementsintra-cluster communication with the D-module 204 and with otherS-modules. Finally, the functional components of the S-module 202include a transport module 210 that manages the FCP, iSCSI, or FCoEports that connect to/from the host.

In addition, the storage operating system includes a set of data accesscomponents organized to provide data paths for accessing informationstored on the storage devices of a node; these components in combinationwith underlying processing hardware form a D-module. To that end, thedata access components include, for example, a storage manager module222, a RAID system module 224, and a storage driver system module 226.

The storage manager 222 primarily manages the layout of data on the massstorage devices 108 and serves host-initiated read and write requests.The RAID system 224 manages the storage and retrieval of information toand from the storage devices 108 in accordance with a RAID redundancyprotocol, such as RAID-4, RAID-5, or RAID-DP, while the storage driversystem 226 implements a storage access protocol such as Small ComputerSystem Interface (SCSI) or FCP. The D-module 204 also includes a clusterinterface module 228 to implement an intra-cluster communication linkwith S-modules and/or other D-modules.

The nodes in a cluster can cooperate, through their respective clusterinterface modules, to provide a single file system namespace across allD-modules in the cluster. Thus, any S-module that receives a datarequest can access any data container within the single file systemnamespace located on any D-module of the cluster, and the location ofthat data container can remain transparent to the host and its user.

The cluster interface modules 216 and 228 implement a protocol tocommunicate commands and data among the modules of cluster. Suchcommunication can be effected by a D-module 204 exposing an applicationprogramming interface (API), to which an S-module 202 (or anotherD-module) issues calls. To that end, a cluster interface module can beorganized as an encoder/decoder. The encoder of, for example, thecluster interface 216 on an S-module 202 can encapsulate a message as(i) a local procedure call (LPC) when communicating a file systemcommand to a D-module 204 residing on the same node or (ii) a remoteprocedure call (RPC) when communicating the command to a D-moduleresiding on a remote node of the cluster. In either case, the decoder ofthe cluster interface 228 on the D-module de-encapsulates the messageand processes the included command.

The D-module 204 also includes a cluster transaction manager 230 and acluster quorum manager 232. The cluster quorum manager 232 monitors thenodes that are currently members of the cluster and maintains a list ofthe active and available nodes in the cluster. The cluster transactionmanager 230 provides the functionality to perform distributed operationsas a single transaction that will either succeed or fail across allcluster nodes affected by the transaction. The cluster transactionmanager 230 relies on the cluster quorum manager 232 to identify nodesthat are active and available in the cluster. While the clustertransaction manager 230 and the cluster quorum manager 232 are shown ascomponents of the D-module 204 in this description, they can be locatedlogically at essentially any place in the operating system. For example,the operating system can include a common module, shared between theS-module 202 and D-module 204, in which the cluster quorum manager 232and cluster transaction manager 230 can be located.

The storage operating system includes management components whichprovide a path for a storage administrator to request storage managementoperations on the SAN-attached clustered storage system. Thesemanagement components are not germane to this disclosure, and thus arenot described in detail. However, the management operations requested bya storage administrator are passed from the management module to theS-module 202 and/or D-module 204 where they are processed. Themanagement components along with underlying processing hardware form themanagement module 206.

In the distributed architecture of the SAN-attached clustered storagesystem, a large number of management related transactions may need to bepassed across the cluster to maintain the nodes 102 in a consistentstate. A transaction, as used herein, is a process for communicatinginformation, including management related proposals, among cluster nodes102. For example, if a LUN is reconfigured, the new configuration mayneed to be transmitted to every entity in the cluster that maintains arecord of the LUN configuration. However, passing transactions acrossthe cluster consumes resources of the nodes 102, and if a large numberof transactions are being processed, the node resources may be unable toperform other operations, such as serving data. Further, at least somemanagement transactions may include multiple messages sent back andforth to complete the transaction, and not every node may be affected bya transaction. Therefore, if a transaction can be isolated to only thosenodes affected by the transaction, nodes that are not affected by thetransaction will not waste resources responding to the transaction, andthere will be fewer transaction messages traveling across the clusteroverall.

In order to more efficiently perform transactions in the cluster,therefore, the cluster transaction manager 230 can isolate transactionsto a group of members that share an interest in group resources, such asa resource in the subsystem and/or an object for which the transactionis being performed. A group can be formed for a broad resource, such asa virtual server, or for a very granular resource, such as a specificport on a specific node. A group may include public and private members.Public members of a group are members that participate in every proposalthat is distributed to the group. Every member that joins a groupthrough a join proposal is a public member. Private members of a groupare members that participate only in join and/or leave proposals.Proposals are described in detail below.

FIG. 3 shows an example block diagram of the components of a clustertransaction manager 230 in the D-module 204 of a cluster node 102. Thecluster transaction manager 230 maintains one or more group members (GM)302 and an instance of a replicated workspace 304. As briefly describedabove, a group is an abstraction of cluster transaction manager clients306 that share an interest in resources shared by that group. A clustertransaction manager client 306 is any entity that implements or consumesthe APIs exposed by the cluster transaction manager. The SAN manager 214and the SCSI target instance 212 of an S-module 202 are examples ofcluster transaction manager clients 306.

The GM 302 is an abstraction of a transaction manager client 306. The GM302 facilitates the processing of management and control operations on acluster subsystem or object and communication of information betweentransaction manager clients 306. The GMs communicate via proposalstransmitted to other GMs that have a shared interest in the subsystem orobject. Only members of a group can send or receive proposals related toa group resource. Thus, in order to propose an operation on a groupresource, a cluster transaction manager client 306 can join a group forthat resource. To that end, the cluster transaction manager 230 exposesan API to allow cluster transaction manager clients 306 to join or leavea group. The GM 302 is created in a node 102 when a cluster transactionmanager client 306 on that node calls the cluster transaction managerAPI to join a group. The process of a group member join/leave isdescribed in detail below. Each GM 302 is identified by a unique ID.Each node 102 can include zero or more GMs of a group.

Each group has a group workspace, as part of the shared workspace 304,which is a collection of data associated with the subsystems and/orobjects that are being managed within the context of the group. Theworkspace 304 is replicated across the nodes 102 of the cluster, suchthat each node 102 has access to a local copy of the workspace 304. Theobjects are identified in the group workspace by their object identifier(OID). The OIDs are used in serialization of transactions, as describedbelow.

The cluster transaction manager 230 of FIG. 3 also maintains a groupcoordinator (GC) 308 and a join proposal coordinator (JPC) 310. Eachgroup has one GC 308. The GC 308 is designated to coordinatetransactions within the group. While the GC 308 is depicted as aresiding on the node 102 of FIG. 3, a GC 308 can reside on any node 102within the cluster. In one embodiment, the GC is provisioned or createdon the node that includes the first GM to join a group. If the nodehosting the GC leaves the group, another node from the group can beselected to host the GC. For example, the node hosting the GM with thelowest group member ID can be selected to host the GC. Each GM 302maintains a record of which node is currently hosting the GC 308. A GM302 that wants to perform an operation on a resource shared by the groupcontacts the GC 308 of the group to coordinate the transaction. Thetransaction process is described in more detail below.

The JPC 310 is the GC for a special group that includes all activecluster nodes in the cluster. Membership of a node 102 in the activecluster nodes group is automatic when the node 102 becomes part of thecluster. The JPC 310 is also a private member of every group in thecluster and responds to all group join and leave proposals. As such, theJPC 310 coordinates all requests to join a group from any clustertransaction manager client 306 in the cluster. The JPC 310 maintains alist of currently active groups and the GMs and GC of each currentlyactive group. In one embodiment, if a node 102 is the first node in acluster, it is automatically designated as the hosting the JPC 310. Ifthat node later leaves the cluster, the role of JPC can be assigned toanother node. This new JPC can use voting proposals to take a census ofeach GM of the active cluster nodes group in order to acquire thecurrent state of the groups and their membership.

Transactions and proposals are discussed in detail below with referenceto FIGS. 4 through 8. As discussed above, communication among groupmembers takes place through transactions. A transaction, as used herein,is a process for communicating information among cluster nodes 102. Atransaction can be initiated across all of the nodes 102 that includeentities that are members of a group. Transactions can be of two types.First, there can be a single proposal transaction that consists of asingle proposal. Second, there can be a multiple proposal transactionthat allows a GM to submit multiple proposals that are treated as asingle serialized transaction. A multiple proposal transactionguarantees a GM serialization across the set of proposals in thetransaction until the transaction has completed (i.e., no otherserialized transactions can interrupt the proposals of the multipleproposal transaction). Serialized transactions are used to maintainconsistency in the instances of shared state (e.g., the members of agroup or the configuration of shared resources) among the members of thegroup. Some high-priority proposals, for example, cluster heartbeatproposals, can be approved through unserialized transactions.Unserialized transactions are processed as they are received, withoutregard to whether other transactions are currently processing.

In one embodiment, unserialized transactions can be committedconsistently among the group members by enabling group-wide sequencing.Group wide-sequencing can be enabled by any GM upon joining the group.Group-wide sequencing is set by including a group-wide sequencingindicator in the request from the GM to join the group. If thegroup-wide sequencing indicator is present in the group data structure,multiple unserialized transactions can be processed in parallel,however, the GC ensures that the transactions are committed in aspecified order by each GM. In one embodiment, the GC ensures that thetransactions are committed in a specified order by using a singleexecution thread to send the result of the transaction (e.g., aninstruction to commit the proposed operation) to each GM. Thus, theresults are processed, and therefore committed by each GM, in thespecified order.

Proposals can be of a few different types. The first, and most common,type of proposal is a voting proposal. A voting proposal provides amulti-phase commit process as described below with reference to FIG. 4for management and control operations and allows for the operations tobe consistently applied across the cluster nodes. A second type ofproposal is an informative proposal. An informative proposal broadcastsa certain payload to all of the members of a group without requiring aresponse. Finally, a third type of proposal is a read proposal. A readproposal allows the group member that sends the proposals to collectinformation from each of the other members of the group. Further, any ofthese proposals can also be targeted directly to one or more groupmembers rather than to the group as a whole. These proposals arediscussed in more detail below.

FIG. 4 is a flow diagram of a process for coordinating and performing avoting proposal in a SAN-attached clustered storage system. The processis organized as a sequence of operations in the flowchart. However, itshould be understood that at least some of the operations associatedwith this process potentially can be reordered, supplemented, orsubstituted for, while still performing the same overall technique.

As described above, the cluster transaction manager coordinatesmanagement and/or control operations across the cluster. For example, acluster transaction manager client 306 can propose an operation tochange the configuration of a cluster subsystem or object, such aschanging the configuration of a LUN. Assuming the cluster transactionmanager client 306 is a member of the group associated with the clustersubsystem or object, the cluster transaction manager client 306 caninitiate a transaction to perform the operation by calling a votingproposal API exposed by the cluster transaction manager 230.

At step 402, the GM 302 associated with the cluster transaction managerclient 306 receives, from the client 306, an API call for a votingproposal. For example, as described below with reference to FIGS. 5A and5B, an API call can include a voting proposal that includes, among otherthings, an indication that it is a group join proposal and a group ID.As described above, multiple proposals that are to be processed in asingle transaction can be received from the client; however, tofacilitate description, it is assumed that a single proposal isreceived. The GM 302 looks up the location of the GC, from the GM'slocal record, and forwards the voting proposal to the GC. At step 404,the GC 308 receives the voting proposal from the GM 302 and determines,at step 406, whether the voting proposal is marked as unserialized. Ifthe voting proposal is marked as unserialized, the process continues tostep 414 where the GC 308 forwards the voting proposal to each GM of thegroup for approval. Step 414 is described in more detail below.

If the voting proposal is not marked as unserialized (i.e., the votingproposal is marked as serialized), the GC 308 determines whether anothertransaction affecting the group is being processed or whether the votingproposal can be processed. Proposals are serialized (e.g., queued up) bythe GC 308 based on OIDs, such that only one serialized proposal at atime can be processed for a specific OID. Each proposal includes a listof the OIDs affected by that proposal. The cluster transaction managerclient 306 includes the list of OIDs on which the proposal operates inthe API call. For example, if the proposal was to modify theconfiguration of a LUN, the cluster transaction manager client 306 wouldinclude the OID for the LUN in the API call. Once a transaction has beeninitiated, the GC 308 locks the OIDs affected by the transaction untilthe transaction is complete by maintaining and updating a list of lockedOIDs which are used to compare with the OID to be operated on. In oneembodiment, the GC maintains a queue of the GMs in the group to controlthe order in which GMs can submit a proposal. This queue allows the GCto treat requests from each GM without taking the location of the GMinto account, such that a remote GM is not at a disadvantage to a localGM.

After the GC 308 has received the voting proposal and determined that itis a serialized proposal, at step 410 the GC 308 compares the OIDsincluded in the proposal with the OIDs that have been locked. In thecase of a multi-proposal transaction, all of the OIDs from each of theproposals are checked against the locked OIDs. If any of the OIDs in theproposal(s) are locked, at step 412 the GC 308 returns a busy indicatorto the GM 302 that sent the proposal. The GM 302 is responsible forresponding to the busy indicator. For example, the GM 302 can queue theproposal and retry it after a period of time. If none of the OIDs fromthe voting proposal are locked, at step 408 the GC 308 locks the OIDsaffected by the voting proposal and at step 414 forwards the votingproposal to each GM of the group, including the proposal originator GM302.

Each GM 302 in the group receives the proposal from the GC 308 andpresents the proposal to its cluster transaction manager client 306using a client callback function. The cluster transaction manager client306 responds to the GM 302, through a Respond API, with an indicationthat the cluster transaction manager client 306 either accepts orrejects the proposal. The GM 302 then forwards the response to the GC308 which, at step 416, receives the responses from each GM. At step418, the GC 308 tallies the responses and determines whether each GM hasaccepted the proposal. The GC 308, at step 420, then decides whether tocommit the proposal (i.e., carry out the requested operation) based onthe tallied responses. In one embodiment, the GC 308 decides to committhe proposal only if a unanimous acceptance of the proposal is receivedfrom the GMs. In another embodiment, the GC 308 decides to commit theproposal if a majority, or any other specified number or subset, of theclients accept the proposal.

In response to deciding whether to commit the proposal, at step 422, theGC 308 sends a result to the GMs. In one embodiment, the result can be acommand to either commit or to discard the proposal. In either case,each GM 302 forwards the result, for example, by using the clientcallback function as described above, to its cluster transaction managerclient 306 where the proposal can either be committed or discarded. Ifthe proposal is committed, each GM 302 updates its instance of theshared state. Each cluster transaction manager client 306 responds bycalling an API that indicates that the proposal has been committed ordiscarded. The indication is forwarded by the GM 302 to the GC 308. TheGC 308 can then unlock the OIDs (e.g., by updating the list of lockedOIDs) such that the next serialized transaction can be processed.

FIGS. 5A and 5B collectively are a flow diagram of a process forcoordinating and processing a Group Join proposal in a SAN-attachedclustered storage system. A Group Join proposal is a special case of avoting proposal. The process is organized as a sequence of operations inthe flowchart. However, it should be understood that at least some ofthe operations associated with this process potentially can bereordered, supplemented, or substituted for, while still performing thesame overall technique.

In order for a cluster transaction manager client 306 to propose amanagement or control operation on a shared resource in the cluster, thecluster transaction manager client 306 must be a member of a group forthat resource. Thus, if a cluster transaction manager client 306 is notcurrently a member of the group, the cluster transaction manager client306 must join the group before the cluster transaction manager client306 can propose operations. As described above, the JPC 310 coordinatesGroup Join proposals. To join a group, the cluster transaction managerclient 306 calls a group join API exposed by the cluster transactionmanager 230. The cluster transaction manager 230, in response toreceiving the API call, creates a GM 302 for the client which forwardsthe proposal to the JPC 310.

At step 502, the JPC 310 receives the Join proposal. The Join proposalincludes a group identifier for the group that the cluster transactionmanager client 306 is proposing to join. As described above, the JPC 310maintains a list of currently active groups in the cluster and checksthe list of currently active groups, at step 504, to determine if agroup matching the proposed group identifier exists. If the groupexists, at step 506, the JPC 310 forwards the Join proposal to the GC308 for the group.

In response to receiving the Join proposal, at step 508, the GCdetermines whether other transactions are being processed. In oneembodiment, Group Join proposals are exclusive proposals, meaning thatno other transactions are processed during the group join transaction.This ensures that no changes are made to the group, the membership listof the group, or to the shared workspace while a Join proposal is inprogress. If, at step 508, the GC 308 determines that there arecurrently transactions in progress the GC 308 queues the Join proposalat step 510. While there is a proposal in the queue, the GC 308 repliesto any other proposal with a busy indication. When the GC 308 hascompleted processing the transaction(s) in progress, the Join proposalin the queue is processed as described below.

If, at step 508, the GC 308 determines that there are no transactions inprogress, at step 512 the GC 308 marks itself exclusive by setting aflag within the GC data structure, for example, and forwards the joinproposal to each member of the group, including the GM 302 for thecluster transaction manager client 306 proposing to join the group, atstep 514. If, at step 504, the JPC 310 determines that a group matchingthe proposed group identifier does not exist, at step 516 of FIG. 5B theJPC 310 adds a new group identifier to the list of currently activegroups. The membership of the group is initially set to include the GM302 of the requesting client as the GC 308 and a public member of thegroup and the JPC 310 as a private member of the group. The JPC 310, atstep 518, then forwards the Join proposal to the newly created GC 308.The GC 308 forwards the Join proposal, at step 514, to each member ofthe group.

Each GM receives the join proposal and presents the join proposal to itscluster transaction manager client 306 using a client callback function.The cluster transaction manager client 306 responds to the GM 302,through a Respond API, with an indication that the cluster transactionmanager client 306 either accepts or rejects the Join proposal. The GM302 then forwards the response to the GC 308 which, at step 520,receives the responses from each GM. At step 522, the GC 308 tallies theresponses and determines whether each GM has accepted the proposal. TheGC 308, at step 524, then decides whether to commit the proposal basedon the tallied responses. In one embodiment, a join proposal iscommitted only if the GC 308 receives a unanimous accept.

In response to deciding whether to commit the join proposal, at step526, the GC 308 sends a result to the GMs. In one embodiment, the resultcan be a command to either commit the proposal or to discard theproposal. In either case, each GM 302 forwards the result to its clustertransaction manager client 306 where the proposal can either becommitted or discarded. The cluster transaction manager client 306responds by calling an API that indicates that the proposal has beencommitted or discarded, which is forwarded by the GM 302 to the GC 308and the GC 308 releases its exclusive status. If the proposal iscommitted and the cluster transaction manager client 306 joins thegroup, at step 528, each GM updates the group membership recordmaintained in its node.

FIG. 6 is a flow diagram of a process for coordinating and processing agroup Leave proposal in a SAN-attached clustered storage system. A Leaveproposal is a special case of a voting proposal. The process isorganized as a sequence of operations in the flowchart. However, itshould be understood that at least some of the operations associatedwith this process potentially can be reordered, supplemented, orsubstituted for, while still performing the same overall technique.

In order to leave a group, a client calls a Leave Group API exposed bythe cluster transaction manager. In response to the Leave Group APIcall, the GM 302 for the cluster transaction manager client 306 sends aLeave proposal to the GC 308. The GC 308 receives the Leave proposal atstep 602, and in response to receiving the Leave proposal, determines,at step 604, whether other transactions are currently being processed.In one embodiment, Group Leave proposals are exclusive proposals similarto the Join proposals as described above. If the GC 308 determines thatthere are currently transactions in progress, at step 608, the GC 308queues the Leave proposal. When the GC 308 determines that thetransaction(s) in progress have completed, the Leave proposal in thequeue is processed as described below.

If, at step 604, the GC 308 determines that there are no transactions inprogress, at step 610 the GC 308 marks itself exclusive and forwards theLeave proposal to each member, public and private, of the group at step612. Each GM 302 receives the leave proposal and presents the Leaveproposal to its cluster transaction manager client 306 using a clientcallback function. The cluster transaction manager client 306 respondsto the GM 302, through a Respond API, with an indication that thecluster transaction manager client 306 either accepts or rejects theLeave proposal. The GM 302 then forwards the response to the GC 308which, at step 614, receives the responses from each GM. At step 616,the GC 308 tallies the responses and determines whether each GM hasaccepted the proposal. The GC 308, at step 618, then decides whether tocommit the leave proposal based on the tallied responses. In oneembodiment, the Leave proposal is committed only if the GC 308 receivesa unanimous accept.

In response to deciding whether to commit the leave proposal, at step620, the GC 308 sends a result to the GMs. In one embodiment, the resultcan be to either commit or to discard the Leave proposal. In eithercase, each GM 302 forwards the result to its cluster transaction managerclient 306 where the proposal can either be committed or discarded. Thecluster transaction manager client 306 responds by calling an API thatindicates that the proposal has been committed or discarded, which isforwarded by the GM 302 to the GC 308 and the GC 308 releases itsexclusive status. If the proposal is committed and the clustertransaction manager client 306 leaves the group, at step 622, each GM302 updates the group membership record maintained in its node.

FIG. 7 is a flow diagram of a process for coordinating and processing aninformative proposal in a SAN-attached clustered storage system. Aninformative proposal, for example, can be a proposal that indicates thecurrent state of a group including the group membership. The process isorganized as a sequence of operations in the flowchart. However, itshould be understood that at least some of the operations associatedwith this process potentially can be reordered, supplemented, orsubstituted for, while still performing the same overall technique.

At step 702, the GM 302 associated with a cluster transaction managerclient 306 receives, from the cluster transaction manager client 306, anAPI call for an informative proposal. For example, the API call caninclude a message that is to be communicated to each member of thegroup. The GM 302 looks up the location of the GC 308, from the GM'slocal record, and forwards the informative proposal to the GC 308. Atstep 704, the GC 308 receives the informative proposal from the GM 302and determines, at step 706, whether the informative proposal is markedas unserialized. If the informative proposal is marked as unserialized,the process continues to step 714 where the GC 308 forwards theinformative proposal to each member of the group for approval. Step 714is described in more detail below.

If the informative proposal is not marked as unserialized (i.e., theinformative proposal is marked as serialized), the GC 308 determineswhether another transaction affecting the group is being processed orwhether the informative proposal can be processed. Informative proposalscan be serialized in a similar manner as discussed above with regard tovoting proposals.

After the GC 308 has received the informative proposal and determinedthat it is a serialized proposal, at step 710 the GC 308 compares theOIDs included in the proposal with the OIDs that have been locked. Inthe case of a multi-proposal transaction, all of the OIDs from each ofthe proposals are checked against the locked OIDs. If any of the OIDs inthe proposal(s) are locked, at step 712 the GC 308 returns a busyindicator to the GM 302 that sent the proposal. The GM 320 isresponsible for responding to the busy indicator. For example, the GM302 can queue the proposal and retry it after a period of time. If noneof the OIDs from the informative proposal are locked, at step 708 the GC308 locks the OIDs affected by the informative proposal and at step 714forwards the informative proposal to each member of the group, includingthe proposal originator GM 302.

Each GM in the group receives the informative proposal from the GC 308and presents the proposal to its cluster transaction manager client 306using a client callback function. In one embodiment, at step 716 thecluster transaction manager client 306 responds to the GM 302, through aDone API, with an indication that the cluster transaction manager client306 has received the informative proposal. The GC 308 can then unlockthe OIDs such that the next serialized transaction can be processed.

FIG. 8 is a flow diagram of a process for coordinating and processing aread proposal in a SAN-attached clustered storage system. A readproposal, for example, can be a proposal to acquire the current state ofcounters within the group. The process is organized as a sequence ofoperations in the flowchart. However, it should be understood that atleast some of the operations associated with this process potentiallycan be reordered, supplemented, or substituted for, while stillperforming the same overall technique.

At step 802, the GM 302 associated with a cluster transaction managerclient 306 receives, from the cluster transaction manager client 306, anAPI call for a read proposal. For example, the API call can include amessage that is to be communicated to each member of the group. The GMlooks up the location of the GC 308, from the GM's local record, andforwards the read proposal to the GC 308. At step 804, the GC 308receives the read proposal from the GM 302 and determines, at step 806,whether the read proposal is marked as unserialized. If the readproposal is marked as unserialized, the process continues to step 814where the GC 308 forwards the read proposal to each member of the groupfor approval. Step 814 is described in more detail below.

If the read proposal is not marked as unserialized (i.e., the readproposal is marked as serialized), the GC 308 determines whether anothertransaction affecting the group is being processed or whether the readproposal can be processed. Read proposals can be serialized in a similarmanner as discussed above with regard to voting proposals.

After the GC 308 has received the read proposal and determined that itis a serialized proposal, at step 810 the GC 308 compares the OIDsincluded in the proposal with the OIDs that have been locked. In thecase of a multi-proposal transaction, all of the OIDs from each of theproposals are checked against the locked OIDs. If any of the OIDs in theproposal(s) are locked, at step 812 the GC 308 returns a busy indicatorto the GM 302 that sent the proposal. The GM 302 is responsible forresponding to the busy indicator. If none of the OIDs from the readproposal are locked, at step 808 the GC 308 locks the OIDs affected bythe read proposal and at step 814 forwards the read proposal to eachmember of the group.

Each GM 302 in the group receives the read proposal from the GC andpresents the proposal to its cluster transaction manager client 306using a client callback function. At step 816 the cluster transactionmanager client 306 responds to the GM 302, through a Respond API, withthe information requested by the proposal originator. The GC 308 then,at step 818, forwards the information to the proposal originator GM 302.The proposal originator GM 302 can then pass the information to thecluster transaction manager client 306.

As described above, the processing of transactions can include manyfunction calls and messages. It is possible for any of the functioncalls to fail or the messages to not reach their destinations. In oneembodiment, all of the internal functions (e.g., communication betweenGMs, GCs, and callbacks) and external APIs that could potentially failreturn a status code, even if the status code is a failure. Callers ofsuch functions can initiate fault management actions if the status codeindicates failure.

Additionally, a timer is implemented for each function call orcommunication message, to ensure that a failure status code is returnedif the function call or communication is not successful or not respondedto within a set time. When a proposal is queued for later processing, anindication to that effect can be provided to the requesting applicationso that application level timers may be re-adjusted to reflect anydelays due to the queuing.

One reason a failure may occur is that the workspace associated with theOID(s) affected by a proposal may be inconsistent between the GMs.Another reason a failure may occur is that the workspace associated withthe group may be inconsistent between the GMs. Yet another reason that afailure may occur is that the cluster workspace is not consistentbetween the nodes of the cluster. For example, if the group membershiprecord maintained by a GC is not accurate (e.g., includes a GM that isno longer part of the group), a voting proposal processed by the GM mayfail because a response is not received from the missing GM. Because themajority, if not all faults, in the described system can be attributedto one of the above reasons, fault management operations can beimplemented at the time of the fault to correct the fault.

FIG. 9 is a flow diagram of a process for recovering from a failurecondition in a SAN-attached clustered storage system. The process isorganized as a sequence of operations in the flowchart. However, itshould be understood that at least some of the operations associatedwith this process potentially can be reordered, supplemented, orsubstituted for, while still performing the same overall technique.

The process begins, at step 902, when a function caller or a messagesender detects a fault by, for example, receiving a status code thatindicates a failure. In response to detecting a failure, at step 904,the function caller, for example client 306, calls a Resync OIDWorkspace function. In one embodiment, when a client 306 detects that itis out of sync with the remainder of the group (e.g., by virtue of afailed heartbeat as discussed further below), the client 306 recovers byfloating a proposal to get the current state of the out of sync data.This method can be used to recover a single out of sync OID. At step906, if the GM 302 that caused the error returns a successful result, inresponse to the proposal to resynchronize its OID workspace, no furtheraction is taken, and the cluster continues to operate normally. However,if, at step 906, the GM that was caused the error returns a failedresult, or does not respond, then, at step 908, the GC 308 escalates thefault recovery to the next level and initiates a transaction toresynchronize the group workspace.

In one embodiment, the GC 308 initiates an eviction of thenon-responsive GM, which includes notifying the remaining GMs of thechanged group membership. After the GM has been evicted, the GM willreceive a callback that it has been evicted and can then attempt torejoin the group. In the meantime, the GC 308 continues to processtransactions among the remaining members of the group. When the GM hassuccessfully rejoined the group, the group workspace is once again insync and the cluster continues to operate normally.

However, if the GM is not able to voluntarily leave the group or the GC308 is unable to evict the non-responsive GM from the group, at step910, the GC 308 escalates the fault recovery to the next level andattempts to resynchronize the node. In response to the escalation, thequorum cluster manager 232 removes the node from the cluster quorum, atstep 912, and can then attempt to bring the node back into the clusterquorum.

One of the many functions provided by the cluster transaction manager230 discussed above is helping to maintain consistency betweendistributed objects in the clustered storage system. Referring again toFIG. 2, one of the distributed objects that relies on the clustertransaction manager 230 is the SCSI target 212. The architecture of theSCSI target 212, in one embodiment, is based on the SCSI ArchitectureModel defined by T10, the SCSI standard providing body. As brieflydescribed above, the SCSI targets implement one or more targetsub-devices and presents a single system view of the target sub-devicesto the host (SCSI initiator) 106. However, because of the distributedcluster model, each node 102 internally implements a SCSI targetinstance 212 that cooperates with each of the other SCSI targetinstances in the cluster to provide a consistent and scalable cluster.The distributed SCSI target instances 212 rely on infrastructureprovided by the cluster (e.g., cluster transaction manager 230) toconsistently implement SCSI semantics in each cluster node 102.

FIG. 10 is a block diagram of the components of a SCSI target 212 in theS-module 202 of a cluster node 102 according to one embodiment. The SCSItarget 212 includes a SCSI engine 1002, a transport module 1004, a datainterface 1006, and a control interface 1008. The SCSI engine caninstantiate one or more logical target ports 1010, one or more targetsub-devices 1012 including logical sub-units 1014, and one or moredevice sub-servers 1020. The elements of the SCSI target 212 can beimplemented by programmable circuitry programmed or configured bysoftware and/or firmware, or it can be implemented entirely byspecial-purpose “hardwired” circuitry, or in a combination of suchforms.

The SCSI engine 1002 is the core functional block of a SCSI targetinstance 212 and implements, among other things, SCSI objects such asthe target ports 1010, the SCSI target sub-device(s) 1012, and logicalsub-unit(s) 1014. The SCSI engine 1002 performs SCSI protocol processingfunctions such as, for example, parsing/validating command descriptorblocks and parameter data, implementing a generic SCSI task statemachine, defining SCSI objects, formatting response data, and selectingresponse and error codes based on host profiles.

As described above, a target device is a distributed object thatincludes a set of target sub-devices 1012 hosted on one or more nodes102 in the cluster. The target device is a representation of a storageserver that stores and serves data to one or more host systems. In oneembodiment, the target device corresponds to a virtual server, wherethere can be multiple virtual servers that share a single set ofphysical resources. The target device is distributed as the set oftarget sub-devices 1012 such that a host accessing the system on anygiven node sees a consistent view of the target device. The targetsub-devices 1012 on each node 102 coordinate operations using thecluster transaction manager 230, for example, to maintain consistentcontext information. This process is described in more detail below withreference to FIG. 4.

Each target sub-device 1012 is multi-protocol capable (i.e., supportsFCP, iSCSI or any other SCSI transport protocol). To that end, eachtarget sub-device 1012 is identified to the host 106 based on multipleprotocols. For example, for a host accessing the cluster based on FibreChannel Protocol (FCP) the target sub-device 1012 is identified by aWorld-Wide Node Name (WWNN), whereas for a host accessing the clusterbased on iSCSI the target sub-device 1012 is identified by an iSCSITarget Node Name (e.g., an iSCSI Qualified Name (IQN)). In oneembodiment, the target sub-device 1012 is also identified by a protocolagnostic identifier.

Each target sub-device 1012 is associated with a set of logical targetports 1010 and contains one or more logical sub-units 1014. In oneembodiment, similar to the SCSI target 212 and the target sub-device1012, one or more nodes 102 of the cluster can each host a logicalsub-unit 1014, where the logical sub-units collectively make up alogical unit. The logical sub-units 1014 share global contextinformation (e.g., state and configuration information) associated withthe logical unit. The logical sub-units 1014 are each associated with atask sub-manager 1016 that coordinates state and configuration changesby using the cluster transaction manager 230 to distribute changes,requested at one logical sub-unit 1014, to the remaining logicalsub-units that make up the distributed logical unit. The distributedlogical unit is a representation of physical storage, or an abstractionof physical storage such as a volume, on which data in the cluster isstored. A collection of logical sub-units distributed across multiplecluster nodes can be identified to a host 106 by the same globallyunique logical unit identifier for purposes of access by the host 106.

SCSI initiators, e.g., host 106, access logical sub-units via logicaltarget ports 1010. In one embodiment, multiple logical target ports 1010can reference a single physical port on the same node. Logical targetports 1010 are associated with a physical port when the transport module1004, in response to a command from the management module 206,associates the identifier for the logical target port (i.e., transportprotocol dependent and transport protocol independent identifiers) witha physical port on the node. The transport module 1004 registers thelogical target port information with the SCSI target 212 which theninstantiates the logical target port 1010. The transport module 1004 canthen advertise the logical port 1010 in the SAN 110 (e.g., via FibreChannel Fabric Login or during iSCSI discovery) which enables the host106 to discover and connect to the logical port 1010.

The primary function of the logical target ports 1010 is to providerouting for commands and/or task management functions from the host 106to the appropriate logical sub-unit 1014. To this end, logical targetports 1010 provide a point of access for the target sub-device 1012.Each target sub-device 1012 is associated with a separate set of logicaltarget ports 1010. Each logical target port 1010 of the set isidentified by a transport protocol dependent identifier (e.g., WWPN orIQN+TPG Tag) and a transport protocol independent relative target portidentifier (RTP Id). The logical target ports 1010 are used by the SCSIengine 1002 to interface with FCP and iSCSI transport modules using thetransport module 1004. In one embodiment, the transport interface 1004is implemented as an API.

Data interface 1006 is used by the SCSI engine 1002 to send read/writeoperations to the storage manager 222 in the D-module 204 that hosts thephysical storage where the read/write operation is to take place. Datainterface 1006 translates the operations requested by the SCSI engine1002 to the format used by the cluster interface 216 and notifies thecluster interface of the operation destination (i.e., the specificD-module that hosts the physical storage). The data interface 1006 alsoreceives completion/error messages from the D-module 204. The datainterface 1006 can then forward the completion/error messages to theSCSI engine 1002 to determine the next steps for the read/writeoperation.

The control interface 1008 is used by the SCSI engine 1002 tosynchronize execution of SCSI semantics with corresponding SCSI enginesin other cluster nodes 102. As briefly described above, each logicalsub-unit 1014 is associated a task sub-manager 1016 to sequence andprocess commands and task management requests. An example of a taskmanagement request is LOGICAL UNIT RESET, which resets a logical unit toits initial power on state (i.e., discards all state information anddisposes all queued commands without executing them). A task managementrequest is received at one logical sub-unit but may need to be processedby all logical sub-units that collectively make up the singledistributed logical unit. The device sub-server 1020 coordinatesprocessing of commands and task management functions the need to beprocessed by each of the logical sub-units, such that the contextinformation remains consistent between the logical sub-units asdiscussed further with respect to FIG. 12.

The control interface 1008 allows the task sub-manager 1016 tocommunicate over the cluster interface 216 with the cluster transactionmanager 230. Specifically, the control interface 1008 maps requests fordistributed operations from the SCSI engine 1002 into transactionsdistributed to other instances of the distributed logical unit by thecluster transaction manager 230. The task sub-manager 1016 uses thecontrol interface 1008 to synchronize a set of tasks in the task sub-set1018 that affect the context information maintained by the logicalsub-unit 1014. This enables each task sub-manager 1016 associated with alogical unit to have a representation of a single global task set. Theprocess of maintaining consistent context information is described inmore detail below with reference to FIG. 12.

FIG. 11 is a flow diagram of a process for implementing a distributedlogical unit in a SAN-attached clustered storage system. The processesdescribed in FIGS. 11 and 12 are organized as sequences of operations inthe flowcharts. However, it should be understood that at least some ofthe operations associated with these processes potentially can bereordered, supplemented, or substituted for, while still performing thesame overall technique.

As described above, the cluster presents a single system view of adistributed logical unit to the host, such that access to a particularlogical sub-unit of the distributed logical unit is transparent to thehost. In other words, the host is not aware of the existence of thelogical sub-units and it appears to the host that the host is accessinga singular logical unit rather than a distributed logical unit. In oneembodiment, at step 1102, the S-module 202 of each cluster node 102instantiates a logical sub-unit 1014 associated with a target sub-device1012. The logical unit 1014 includes the task sub-manager 1016, the tasksub-set 1018, and device sub-server 1020. In one embodiment, theS-module on only a subset of the cluster nodes instantiates alogical-sub unit such that there may be some nodes in the cluster thatdo not include a target sub-device or a logical sub-unit associated withthat target sub-device.

At step 1104, the SCSI target 212 of the S-module 202 associates eachlogical sub-unit, that is part of the single distributed logical unit,with a single host visible identifier. Thus, each logical sub-unit isidentified with a single identifier such that the logical sub-units arenot visible to the host a separate entities from the single distributedlogical unit.

At step 1106, each logical sub-unit joins a group that includes logicalsub-units that share the same host visible identifier. As describedabove, a cluster transaction manager 230 coordinates communicationacross the cluster, for example, to enable a logical sub-unit to join agroup. The cluster transaction manager 230 enables each logical sub-unithaving the same host visible identifier to join a common group andcommunicate with each other logical sub-unit in the group bycoordinating the distribution of proposals to each member of the group.

At step 1108, the S-module distributes and maintains context informationfor each logical sub-unit 1014 that is consistent with correspondingcontext information of each other logical sub unit such that the logicalsub-units collectively make up a single distributed logical unit. Theprocess for maintaining the context information is described in moredetail below with reference to FIG. 5. At step 1110, the S-module 202 ineach node that includes a logical sub-unit generates a map thatassociates each logical sub-unit 1014 that collectively make up thedistributed logical unit with a set of storage objects that areassociated with the distributed logical unit. In one embodiment, the mapis a database that associates a LUN, or some other storage objectidentifier, with each logical sub-unit.

As described above, in order to maintain a consistent view of adistributed logical unit across all of the nodes in a cluster, SCSItarget 212 maintains context information for each logical sub-unit thatis consistent with the corresponding context information for each of theother logical sub-units. SCSI target 212 can maintain the contextinformation in a data structure in memory, for example. Such contextinformation can include, for example, a data access state (e.g.,connected/not-connected), an administrative state (e.g.,enabled/disabled), a SCSI reservation state and/or type, a powercondition state (e.g., active, idle, standby, stopped, etc.), logicalunit configuration (e.g., a logical unit identifier such as a LUN SerialNumber, block size, geometry, ALUA/non-ALUA personality, etc.), and/orlogical unit metadata such as mode pages that advertise a specificlogical unit behavior to the host and log pages that export variousstatistics associated with the logical unit to the host. The contextinformation can be modified as a result of processing commands, forexample, SCSI commands or calls made to APIs exposed by the SCSI target212. Execution of these commands can is synchronized on each node of thecluster using the cluster transaction manager 230 as described in moredetail below.

FIG. 12 is a flow diagram of a process for maintaining consistentcontext information between logical sub-units of a distributed logicalunit. At step 1202, the task sub-manager 1016 of each logical sub-unit1014 instantiates an instance of a global task set (i.e., task sub-set1018), to organize any commands that will modify the contextinformation. In order to maintain the consistency of the contextinformation, commands that modify the context information are performedin the order that they appear in the global task set. The consistency ofeach task sub-set 1018 is maintained by using the cluster transactionmanager 230 to coordinate when, and in what order, a command can beplaced in the global task set.

For each command in the global task set, the task sub-manager 1016 thatproposed the transaction to place the command in the global task set canbe considered the master task sub-manager. The master task sub-manageris responsible for requesting that the command be placed in the task setand, when the command has reached the top of the queue and is processed,notifying the other task sub-managers that the command has beenprocessed.

At 1204, the master transaction sub-manager requests a transaction bycalling a proposal API exposed by the cluster transaction manager 230.The cluster transaction manager 230 forwards the request to the GC,which serializes transaction requests such that a consistent tasksub-set 1018 is maintained by each task sub-manager. If there are noother transaction requests processing, the GC forwards the request toeach of the GMs associated with each of the task sub-managers andinforms the task sub-managers to add the request to the correspondingtask sub-set 1018. Then, at step 1206, each task sub-manager adds thecommand to the task sub-set in the order in which they are received bythe GC, such that each instance of the global task set remainsconsistent.

At step 1208, when the command requested by the master task sub-managerreaches the top of the queue, the master task sub-manager initiatesprocessing of the command. When the command has been processed, at step1210, the master task sub-manager initiates a transaction using thecluster transaction manager 230 to update the context informationmaintained for each logical sub-unit. In response to receiving aconfirmation from each SCSI target 212 that the context information hasbeen updated, at step 1212, the master task sub-manager removes thecommand from the task sub-set and requests a transaction to remove theprocessed command from each other task sub-set in the cluster so thatthe next command can be processed.

Because of the distributed architecture of the SAN-attached clusteredstorage system, it can be difficult to maintain consistency between thecluster nodes. However, it is important to maintain consistency betweenthe nodes so that each instance of the distributed system appears thesame to the host. Maintaining consistency between the cluster nodesbecomes more difficult, if not impossible, when some of the nodes in thecluster are not able to communicate with other nodes in the cluster. Ina situation where a portion of the cluster nodes are isolated from theothers, the cluster quorum managers 232 in the various cluster nodes candetermine which collection of cluster nodes has quorum and implementtechniques to fence the remaining nodes from the cluster so thatconsistency is maintained. “Quorum,” as used herein, means a collectionof connected, active, and available nodes in the cluster that canadequately perform normal operations of the cluster. The process ofdetermining quorum, as described below in more detail, includesdetermining which collection of nodes (if there is more than one) shouldcontinue operation as the storage system and provide services to thehost.

As described briefly above, the cluster quorum manager 232 relies on thecluster transaction manager 230 to monitor each of the cluster nodes.The cluster quorum manager 232 does this by using the clustertransaction manager 230 to conduct transactions between each of thecluster nodes. As described above, the cluster transaction manager 230isolates transactions to members of a group. The cluster quorum managerof each node 102 of a cluster is a member of a Configured Cluster Nodes(CCN) group, for example. When a cluster node joins or leaves thecluster it is added or removed from the CCN group. The cluster quorummanager 232 uses transactions between the members of the CCN group tomonitor whether a cluster node is active and/or available in thecluster. In one embodiment, each cluster quorum manager 232 in thecluster maintains a consistent list of the members of the CCN group andthe active and available nodes in the cluster. In one embodiment, eachnode in the cluster is identified by a unique node ID, and the clusterquorum manager on the node with the lowest node ID is designated as themaster cluster quorum manager (“master”). While the example of using thelowest node ID to determine the master cluster quorum manager is used inthis description, it is understood that any one of a number of uniqueidentifiers and/or processes can be used to select the master clusterquorum manager. The master cluster quorum manager is responsible fororiginating a heartbeat proposal to each of the other cluster quorummanagers in the CCN group and coordinating communication of othercluster quorum information between members of the CCN group.

The cluster transaction managers 230 maintain a group member (GM)abstraction (e.g., a finite state machine instantiated by the clustertransaction manager) of each cluster quorum manager 232 in the clusterto facilitate the processing of transactions between the cluster quorummanagers. The GMs communicate via proposals transmitted to other GMs ofthe same group. The cluster transaction manager 232 exposes APIs, orprovides some communication method, for the cluster quorum manager 232to initiate proposals to the other GMs. One of the GMs is designated agroup coordinator (GC). The GC coordinates the distribution of proposalsto each of the GMs and the collection of responses to those proposals.

Among other proposals, three types of proposals are used forcommunications between cluster quorum managers. These three types ofproposals are described in more detail below with reference to FIGS. 13and 16. The first proposal is a heartbeat proposal to determine whichnodes of the cluster are active and able to communicate with the master.The master originates the heartbeat proposal, which is sent to eachcluster quorum manager that is a member of the CCN group.

A second type of proposal originated by the master is a quorum statusmessage proposal. The master can originate the quorum status messageproposal in response to an event that relates to the quorum. Forexample, the master can originate a quorum status message after it hasevaluated which nodes are active and available in the cluster, inresponse to a change in the nodes that make up the cluster, or inresponse to a reconfiguration of storage resources due to failure of anode. The quorum status message is sent to all cluster quorum managersthat are members of the CCN group.

Another type of proposal used for communication between the clusterquorum managers is a cluster change notification. Any cluster quorummanager can originate the cluster change notification. A cluster quorummanager may originate the cluster change notification in response toreceiving notification from another cluster subsystem that there hasbeen a change in the configuration of the cluster, for example, due tothe failure of a cluster node. This notification message is sent to allcluster quorum managers in the CCN group.

FIG. 13 is a flow diagram of a process for coordinating and performing aheartbeat proposal in a SAN-attached clustered storage system. Theprocesses described herein are organized as a sequence of operations inthe flowcharts. However, it should be understood that at least some ofthe operations associated with these processes potentially can bereordered, supplemented, or substituted for, while still performing thesame overall technique.

As described above, the cluster transaction manager 230 coordinatescommunication across the cluster. For example, the cluster quorummanager 232, as a cluster transaction manager client, can originate aproposal such as the heartbeat proposal briefly described above. In oneembodiment, assuming the cluster quorum manager 232 is the master, thecluster quorum manager 232 can originate the heartbeat proposal bycalling a voting proposal API exposed by the cluster transaction manager230. Other methods of communication known in the art can be used toreplace the API call used in this description.

At step 1302, the GM associated with the cluster quorum manager 232receives a communication from the cluster quorum manager 232 to initiatea heartbeat proposal. In one embodiment, the communication is an APIcall for a voting proposal, for example, a heartbeat proposal. The APIcall includes, among other things, the most recent list of nodes thatbelong to the CCN group and an indication of the master's compatibilitywith other versions. As described above, multiple proposals that are tobe processed in a single transaction can be received from the client;however, to facilitate description, it is assumed that a single proposalis received. The GM looks up the location of the GC, from the GM's localrecord, and forwards the heartbeat proposal to the GC. At step 1304, theGC receives the heartbeat proposal from the GM. Because the heartbeatproposal is an unserialized proposal, the GC, at step 1306, forwards theproposal to each GM of the group without regard to whether otherproposal are currently processing.

Each GM in the group receives the proposal from the GC and presents theproposal to its corresponding cluster quorum manager using a clientcallback function. The cluster quorum manager responds to the GM,through a Respond API, with an indication that the cluster quorummanager either accepts or rejects the proposal and an indication of thecluster quorum manager's operating version. For example, a clusterquorum manager may reject the proposal if the recipient cluster quorummanager is aware of anomalies affecting functionality in the local node,thereby indicating the local node is in poor health. The GM thenforwards the response to the GC which, at step 1308, receives theresponses from each GM. At step 1310, the GC determines whether each GMhas responded to the proposal before a timeout period for response hasexpired.

At step 1312, the GC packages the responses into a result message thatit distributes to each GM. At step 1314, in response to receiving theresult, a cluster quorum manager, that is not the master, indicates tothe GM that the result has been received. The master, at step 1314, usesthe responses to identify the collection of cluster nodes thatconstitute quorum in the cluster. The process of identifying quorum isdescribed in more detail below with reference to FIGS. 14 and 15.

FIGS. 14 and 15 collectively show a process for identifying quorum in aSAN-attached clustered storage system. As briefly described above, aquorum is a collection of active and available cluster nodes that cancontinue normal operation of the cluster. The master cluster quorummanager determines quorum based on the results of a heartbeat proposal.The process of determining quorum can be divided into essentially twoparts: First, identifying a collection of active cluster nodes (i.e.,nodes that are connected and can communicate) and second, determiningthat the collection of active nodes is available to perform the normaloperations of the cluster.

FIG. 14 is a flow diagram of a process for determining whether a node isconsidered active in a SAN-attached clustered storage system such asrepresented in FIG. 1. The result of the process depicted in FIG. 14 isa list of the active cluster nodes (ACN). The process of identifyingactive cluster nodes is initiated in response to the master receivingthe results of a heartbeat proposal. The process takes place for eachnode in the CCN group that was included in the heartbeat proposal. Whilethe flow chart of FIG. 14 shows the process for determining theactive/inactive status of a single cluster node, it is to be understoodthat the process is performed for each node that is included in the CCNgroup. At step 1402, the master cluster quorum manager determineswhether the cluster quorum manager of a node failed to accept theheartbeat proposal and return a result or failed to respond completely.

The master cluster quorum manager maintains a data structure (ormultiple data structures) that includes counters that track the numberof failed heartbeat proposal responses and the number of successfulheartbeat proposal responses by each cluster quorum manager. If anothercluster quorum manager returns a failed heartbeat proposal response tothe master cluster quorum manager, at step 1404, the master clusterquorum manager increments the failed heartbeat proposal counter andresets the successful heartbeat proposal counter that corresponds tothat cluster quorum manager. The master cluster quorum manager thendetermines, at step 1406, whether the failed heartbeat proposal counterhas reached a predetermined threshold.

If the failed heartbeat proposal has reached the predeterminedthreshold, at step 1408 the master cluster quorum manager determinesthat the cluster node is not active and removes the node from the ACNgroup. If the failed heartbeat proposal has not reached the determinedthreshold, at step 1410 the master cluster quorum manager does notchange the active/inactive status of the cluster node. The process ofmaintaining a counter for determining whether a cluster node has becomeactive/inactive can smooth over changes to the cluster quorum that maybe attributed to minor, transient, or temporary communication errors,etc.

Returning to step 1402, if the cluster quorum manager returns asuccessful heartbeat proposal response, at step 1412 the master clusterquorum manager increments the successful heartbeat proposal counter andresets the failed heartbeat proposal counter. The master cluster quorummanager then determines, at step 1414, whether the successful heartbeatproposal counter has reached a predetermined threshold. If thesuccessful heartbeat proposal has not reached the predeterminedthreshold, at step 1420 the master cluster quorum manager does notchange the status of the cluster node.

If the successful heartbeat proposal has reached the predeterminedthreshold, at step 1416 the master cluster quorum manager determineswhether the cluster node is available to be included in the quorum. Acluster node can be unavailable for any of a number of reasons. Forexample, if a cluster node is marked unavailable by an administrator,the cluster node will not be available to be included in quorumcalculations. Similarly, if a cluster node is being taken over by itsfail over partner, but for some reason is still active in the cluster,the cluster node will not be available to be included in the quorum.Further, if the cluster node is a product version that is not compatiblewith the master cluster quorum manager node, the cluster node is notavailable to be included in the quorum.

If the master cluster quorum manager determines that the cluster node isavailable, at step 1418 the cluster node is included in the ACN groupand is included in determining cluster quorum. If the master clusterquorum manager determines that the cluster node is not available, atstep 1422 the cluster node is included in the ACN group but is notincluded in determining cluster quorum.

FIG. 15 is a flow diagram of a process for determining whether acollection of active and available cluster nodes constitute a quorum ina SAN-attached clustered storage system. The process depicted in FIG. 15is performed by the master cluster quorum manager after identifyingwhich cluster nodes are active and available.

The process begins at step 1501, where the master quorum managerdetermines which cluster nodes are administratively available in thecluster as described above with reference to FIG. 14. In one embodiment,only the administratively available nodes are used in determiningquorum. At step 1502 the master cluster quorum manager determineswhether the number of active nodes is greater than the inactive nodes inthe cluster. If the number of active nodes is greater than the number ofinactive nodes (i.e., the active nodes are a majority), then at step1504 the master cluster quorum manager determines that quorum isestablished and that the active cluster nodes are included in thequorum. In response to determining that quorum is established, at step1506 the master cluster quorum manager originates a message proposal toeach of the other cluster quorum managers indicating the quorum status.The message proposal is described in detail below with reference to FIG.16.

If, at step 1502, the master cluster quorum manager determines that thenumber of active nodes is not greater than the inactive nodes, at step1508 the master cluster quorum manager determines whether the number ofactive nodes is less than the inactive nodes in the cluster. If themaster cluster quorum manager determines that the number of active nodesis less than the number of inactive nodes in the cluster, then at step1510 the master cluster quorum manager determines that quorum has notbeen established (i.e., the master cluster quorum manager isout-of-quorum). Because the master cluster quorum manager isout-of-quorum, a cluster quorum manager that is in-quorum can take overthe mastership and begin to originate heartbeat proposals. Later, if theinactive nodes rejoin the cluster, the master cluster quorum manager isdetermined as described below.

If, at step 1508, the master cluster quorum manager determines that thenumber of active nodes is not less than the number of inactive nodes(i.e., the cluster is split with the number of active nodes is equal tothe number of inactive nodes), at step 1512 the master cluster quorummanager determines whether one of the active nodes includes thetie-breaker attribute. A tie-breaker attribute is an administratorconfigured attribute of no more than one node in the cluster. Forexample, the cluster administrator initially assigns this attribute toone of the nodes. In one embodiment, the attribute may be automaticallyre-assigned to another node, such as if the node originally assigned tohas been taken over.

If the master cluster quorum manager determines that an active clusternode includes the tie-breaker attribute, at step 1504 the master clusterquorum manager determines that quorum is established and that the activecluster nodes are included in the quorum. In response to determiningthat quorum is established, at step 1506 the master cluster quorummanager originates a proposal to each of the cluster quorum managersindicating the quorum status. If the master cluster quorum managerdetermines that an active cluster node does not include the tie-breakerattribute, at step 1510 the master cluster quorum manager determinesthat quorum has not been established (i.e., the master cluster quorummanager is out-of-quorum). Because the master cluster quorum manager isout-of-quorum, a cluster quorum manager that is in-quorum can take overthe mastership and begin to originate heartbeat proposals to the otherin-quorum nodes. Similarly, the cluster quorum manager on one of theout-of-quorum nodes would emerge as the master cluster quorum managerfor the out-of-quorum cluster partition and exchange heartbeats amongthe nodes in that partition.

As described briefly above, in one embodiment, it is possible for thecluster quorum manager in any cluster node to become the master clusterquorum manager. For example, if the node that hosts the master clusterquorum manager can no longer communicate with the other nodes in thecluster, the mastership will be shifted to another cluster quorummanager in the cluster. In one embodiment, if the master cluster quorummanager determines that another cluster quorum manager has a higherproduct version number than itself, for example, during the heartbeatproposal process, the master cluster quorum manager relinquishes itsmastership to the cluster quorum manager in the higher product versionnode. Further, in one embodiment, the cluster can automatically correctthe situation where there may be more than one cluster quorum manageracting as the master cluster quorum manager at a time by using thespecified hierarchical order to determine which cluster node takesprecedence.

To facilitate quick selection of the master cluster quorum manager in acase like one of those described above, an automatic master clusterquorum manager evaluation system is put in place. The list of nodes ineach cluster, the CCN list, maintained by each cluster quorum managerincludes the nodes in an order by which they are to be selected as themaster cluster quorum manager. For example, in one embodiment, the nodesin the CCN list may be listed in order from lowest to highest node ID.The lowest node ID may be initially designated as the master clusterquorum manager.

In one embodiment, to determine which node will take over as mastercluster quorum manager and when that will happen, each cluster quorummanager maintains a timer. Each cluster quorum manager also has a uniquethreshold time after which, if a heartbeat proposal has not beenreceived from the master cluster quorum manager, that cluster quorummanager will take over as master cluster quorum manager and originate aheartbeat proposal. The timer is reset every time the cluster quorummanager receives a heartbeat proposal from the master cluster quorummanager. In one embodiment, the timer threshold can be a function of thenode ID or some other unique identifier. Thus, the cluster will not bewithout a master cluster quorum manager for a sustained period of time.

In one embodiment, if the master cluster quorum manager receives aheartbeat proposal from another cluster quorum manager holding itselfout to be the master cluster quorum manager, the master cluster quorummanager checks the node ID, or some other unique identifier, anddetermines whether it should continue as the master cluster quorummanager or defer to the proposing cluster quorum manager. In the casewhere the node ID is used to determine the master cluster quorummanager, the master cluster quorum manager will defer to the proposingcluster quorum manager if, for example, the master cluster quorummanager has a higher node ID than the proposing cluster quorum manager.

FIG. 16 is a flow diagram of a process for coordinating an informativeproposal in a SAN-attached clustered storage system. An informativeproposal can be, for example, a quorum status message, as brieflydiscussed above, sent to each of the cluster nodes in the CCN group. Asdescribed above, the cluster transaction manager is used to process theproposal.

At step 1602, the GM associated with the master cluster quorum managerreceives, from the master cluster quorum manager, an API call for aninformative proposal. For example, the API call can include a quorumstatus message that is to be communicated to each member of the CCNgroup. The quorum status message can include, among other things, a listof the currently active nodes and whether each node is in-quorum orout-of-quorum. The quorum status message can also include the version ofeach active cluster quorum manager.

The GM associated with the master cluster quorum manager looks up thelocation of the GC, from the GM's local record, and forwards theinformative proposal to the GC. At step 1604, the GC receives theproposal from the GM and, at step 1606, forwards the proposal to each GMof the CCN group. In one embodiment, the informative proposal can be aguaranteed informative proposal, meaning that the GC requests a receiptmessage from each of the GMs in the group. At step 1608 the GC receivesthe receipt message from each of member of the group. In one embodiment,the master cluster quorum manager attempts to originate the proposalagain, if any of the in-quorum nodes do not acknowledge receipt of thequorum status message. In another embodiment, the master cluster quorummanager periodically sends the most recent cluster quorum statusproposal to all the nodes in the CCN group, which is compared with thelocal record and updated accordingly whereby any nodes that have notreceived it previously are now consistent with the master.

The informative proposal process described above with reference to FIG.16 can also be used by a non-master cluster quorum manager to shareinformation regarding changes in the cluster that should remainconsistent between the cluster quorum managers. For example, in oneembodiment, each cluster quorum manager can subscribe to events that arepublished by other cluster subsystems. If, for example, a cluster quorummanager receives an update that the nodes that make up the CCN grouphave changed, the cluster quorum manager can use an informative proposalto share that information with other cluster quorum managers in thecluster.

As described above, one of the reasons for implementing a clusteredstorage architecture is to provide greater fault tolerance. For example,if a particular node can no longer serve data to the host, for anynumber of reasons, the storage that the node presented to the host canbe taken over by a partner node which can serve the data to the host. Inone embodiment, the cluster quorum managers in each of the nodescoordinate this takeover process. Further, because the proper functionof the cluster includes presenting the host with a consistent view fromeach cluster node, the cluster quorum managers can cooperate toimplement isolation techniques in the event a node fails. Thesetechniques are described below with reference to FIG. 17.

FIG. 17 is a flow diagram of a process for isolating and taking over thestorage of an out-of-quorum node. The process is organized as a sequenceof operations in the flowchart. However, it should be understood that atleast some of the operations associated with this process potentiallycan be reordered, supplemented, or substituted for, while stillperforming the same overall technique.

At step 1702 the process of isolating a node that is no longer in-quorumand taking over that node's storage begins when the master clusterquorum manager sends out a quorum status message with a list of thenodes that are in-quorum or out-of-quorum. To facilitate description,assume a cluster with four nodes, A, B, C, and D. While a four nodecluster is described here, it is understood that any number of clusternodes can perform a similar process. Assume for this example that thequorum status message indicates that node C is out-of-quorum.

At step 1704, in response to receiving the quorum status message, andseeing that node C is out-of-quorum, the cluster quorum manager of eachof the in-quorum nodes, A, B, and D, isolate themselves from node C. Thecluster quorum managers do this by notifying the cluster transactionmanager of their respective node that node C is out-of-quorum. Thecluster transaction manager of each of the in-quorum nodes will ignoreany future transaction requests from node C and will not include node Cin any new proposals, until and unless node C comes back into quorum.

At step 1706, the cluster quorum manager of node C sees that its node isout-of-quorum and it isolates itself from the in-quorum nodes. Node Ccan realize that it is out of quorum in one of several ways. Forexample, if node C does not receive a heartbeat proposal within athreshold time (e.g., the master cluster quorum manager takeover timeras described above) and does not receive a response to its own proposedheartbeat, node C knows it no longer has reliable connectivity with therest of the cluster. Similarly, node C can realize it is out-of-quorumeven if node C does have connectivity to the rest of the cluster, forexample, if node C is not included in the quorum status message as beingin-quorum, for example, because it is an incompatible version. Thecluster quorum manager isolates itself by notifying its correspondingcluster transaction manager that the node is out-of-quorum. The clustertransaction manager of node C, in response to receiving the notificationthat it is out-of-quorum, will no longer make cluster-wide proposalsuntil and unless node C comes back into quorum. Thus, node C's isolationfrom the rest of the cluster is redundant (implemented by the clustertransaction manager of node C itself and by the cluster transactionmanagers of the remaining in-quorum nodes) to ensure that consistency ofthe in-quorum nodes is maintained. For example, if the operating systemon node C is unresponsive, this redundancy protects the integrity of therest of the cluster, by effectively quarantining node C from the othernodes without requiring node C's co-operation.

At step 1708, in response to determining that a node is out-of-quorum,the cluster quorum manager in one of the remaining nodes, assume forthis example node D, determines that it is the storage failover partnerfor node C. In one embodiment, each node receives information regardingstorage failover partners from a Storage Failover sub-system thatdetermines the failover partners. However, any known method ofdetermining failover partners can be used. The cluster quorum manager ofthe failover partner node, in this example node D, at step 1710 checks,for example, with a Storage Failover sub-system, to verify that atakeover of node C's storage is feasible. If the cluster quorum managerof node D determines that a takeover of node C is not feasible, then itwill try to verify whether a takeover is feasible periodically or eachtime it receives a quorum status message indicating that node C isout-of-quorum. If the cluster quorum manager of node D determines that atakeover of node C's storage is feasible, at step 1712 the clusterquorum manager of node D initiates a takeover of node C's storage. Thetakeover process is not germane to this disclosure and can be performedaccording to any one of a number of known techniques.

FIG. 18 is a block diagram of a system that can be used to implementcomponents of a clustered storage area network. For example, the systemof FIG. 18 can be used to implement a node (i.e., an S-module, aD-module, and/or a management module).

In an illustrative embodiment, the system 1800 includes a processorsubsystem 1810 that includes one or more processors. The system 1800further includes memory 1820, a network adapter 1840, and a storageadapter 1850, all interconnected by an interconnect 1860.

The memory 1820 illustratively comprises storage locations that areaddressable by the processor(s) 1810 and adapters 1840 and 1850 forstoring software program code and data associated with the techniquesintroduced here. The processor 1810 and adapters 1840 and 1850 may, inturn, comprise processing elements and/or logic circuitry configured toexecute the software code and manipulate the data structures. It will beapparent to those skilled in the art that other processing and memoryimplementations, including various computer readable storage media, maybe used for storing and executing program instructions pertaining to thetechniques introduced here.

The network adapter 1840 includes a plurality of physical ports, such asa Fibre Channel or Ethernet port, to couple the system 1800 with one ormore other systems over point-to-point links, wide area networks,virtual private networks implemented over a public network (Internet) ora shared local area network. The network adapter 1840 thus can includethe mechanical components and electrical circuitry that allows thesystem 1800 to connect with the cluster interconnect and/or host. One ormore systems can communicate with other systems over the by exchangingmessages, for example, using packets or frames of data according topre-defined protocols.

The storage adapter 1850 cooperates with the operating system to accessinformation on attached storage devices. The information may be storedon any type of attached array of writable storage media, such asmagnetic disk or tape, optical disk (e.g., CD-ROM or DVD), flash memory,solid-state drive (SSD), electronic random access memory (RAM),micro-electro mechanical and/or any other similar media adapted to storeinformation, including data and parity information. The storage adapter1850 includes a plurality of ports having input/output (I/O) interfacecircuitry that couples with the disks over an I/O interconnectarrangement, such as a conventional high-performance, Fibre Channel (FC)link topology.

The techniques introduced above can be implemented by programmablecircuitry programmed or configured by software and/or firmware, or theycan be implemented entirely by special-purpose “hardwired” circuitry, orin a combination of such forms. Such special-purpose circuitry (if any)can be in the form of, for example, one or more application-specificintegrated circuits (ASICs), programmable logic devices (PLDs),field-programmable gate arrays (FPGAs), etc.

Software or firmware for use in implementing the techniques introducedhere may be stored on a machine-readable storage medium and may beexecuted by one or more general-purpose or special-purpose programmablemicroprocessors. A “machine-readable medium”, as the term is usedherein, includes any mechanism that can store information in a formaccessible by a machine (a machine may be, for example, a computer,network device, cellular phone, personal digital assistant (PDA),manufacturing tool, any device with one or more processors, etc.). Forexample, a machine-accessible medium includes recordable/non-recordablemedia (e.g., read-only memory (ROM); random access memory (RAM);magnetic disk storage media; optical storage media; flash memorydevices; etc.), etc.

The term “logic”, as used herein, can include, for example,special-purpose hardwired circuitry, software and/or firmware inconjunction with programmable circuitry, or a combination thereof.

Although the present invention has been described with reference tospecific exemplary embodiments, it will be recognized that the inventionis not limited to the embodiments described, but can be practiced withmodification and alteration within the spirit and scope of the appendedclaims. Accordingly, the specification and drawings are to be regardedin an illustrative sense rather than a restrictive sense.

1-18. (canceled)
 19. A storage area network (SAN)-attached clusteredstorage system comprising: a plurality of storage server nodes coupledto communicate with each other through an interconnect, each storageserver node of the plurality of storage server nodes to include: aprotocol module, executed by a hardware processor, to provide a hostwith access to the SAN-attached clustered storage system, wherein theprotocol module implements a first logical sub-unit of a singledistributed logical unit in a SAN environment that is distributed acrossthe SAN-attached clustered storage system, such that the first logicalsub-unit and the single distributed logical unit appear as a singleentity, wherein the single distributed logical unit comprises aplurality of logical sub-units including the first logical sub-unit; anda cluster services module, executed by the hardware processor, tomaintain consistency between the plurality of logical sub-units thatmake up the single distributed logical unit, the cluster services moduleincluding: a cluster transaction manager to control cluster managementoperation requests and cluster control operation requests by using amulti-phase voting process, wherein the cluster transaction managerincludes a group coordinator to direct the multi-phase voting process ina group to determine whether to commit an operation and to maintain aqueue of entities in the group, such that each entity has an opportunityto propose the operation.
 20. The SAN-attached clustered storage systemof claim 19, the cluster services module including a quorum manager,wherein the quorum manager of one of the plurality of storage servernodes is a master quorum manager to monitor an in quorum/out of quorumstatus of each other quorum manager in the clustered storage system. 21.The SAN-attached clustered storage system of claim 19, wherein eachlogical sub-unit of the plurality of logical sub-units implements aninstance of a global task set to queue commands and task managementfunctions that modify context information, such that context informationbetween each logical sub-unit remains consistent.
 22. The SAN-attachedclustered storage system of claim 19, wherein the protocol moduleimplements a plurality of virtual SCSI target ports, wherein each of theplurality of virtual SCSI target ports is associated with a physicaltarget port of a corresponding storage server node and presents theplurality of virtual SCSI target ports to the host.
 23. The SAN-attachedclustered storage system of claim 19, wherein the cluster transactionmanager includes the group coordinator to direct the multi-phase votingprocess in a group to determine whether to commit an operation.
 24. TheSAN-attached clustered storage system of claim 23, wherein the groupcoordinator maintains a queue of entities in the group, such that eachentity has an opportunity to propose the operation.
 25. The SAN-attachedclustered storage system of claim 19, wherein the master quorum managerdetermines whether each storage server node in the cluster is in-quorumor out-of-quorum based on whether a storage server node has notsuccessfully responded to a heartbeat proposal a threshold number oftimes.
 26. A storage server node for use in a SAN-attached clusteredstorage system that includes a plurality of storage server nodes, thestorage server node comprising: a protocol module to implement a logicalsub-unit of a single distributed logical unit that is distributed acrossthe SAN-attached clustered storage system, such that the logicalsub-unit and the single distributed logical unit appear as a singleentity to the host; a cluster transaction manager to control clustermanagement operation requests and cluster control operation requests byusing a multi-phase voting process; and a quorum manager to maintainconsistency between the storage server node and each other storageserver node of the plurality of storage server nodes.
 27. The storageserver node of claim 26, wherein the quorum manager maintainsconsistency between the storage server node and each other storageserver node of the plurality of storage server nodes based on anin-quorum/out-of-quorum status for each of the plurality of servernodes.
 28. The storage server node of claim 26, wherein the logicalsub-unit implements an instance of a global task set to queue commandsand task management functions that modify context information, such thatcontext information between each logical sub-unis in each of theplurality of storage server nodes remains consistent.
 29. The storageserver node of claim 26, wherein the protocol module implements aplurality of virtual SCSI target ports, wherein each of the plurality ofvirtual SCSI target ports is associated with a physical target port of acorresponding storage server node and presents the plurality of virtualSCSI target ports to the host.
 30. The storage server node of claim 26,wherein the cluster transaction manager includes a group coordinator todirect the multi-phase voting process in a group to determine whether tocommit an operation.
 31. The storage server node of claim 30, whereinthe group coordinator maintains a queue of entities in the group, suchthat each entity has an opportunity to propose the operation.
 32. Thestorage server node of claim 26, wherein the master quorum managerdetermines whether each storage server node in the cluster is in-quorumor out-of-quorum based on whether a storage server node has notsuccessfully responded to a heartbeat proposal a threshold number oftimes.
 33. A method comprising: in a SAN-attached clustered storagesystem that includes a plurality of storage server nodes, each storageserver node: implementing, by a protocol module, a logical sub-unit of asingle distributed logical unit that is distributed across theSAN-attached clustered storage system, such that the logical sub-unitand the single distributed logical unit appear as a single entity to thehost; controlling, by a cluster transaction manager, cluster managementoperation requests and cluster control operation requests by using amulti-phase voting process; and maintaining consistency between each ofthe plurality of storage server nodes.
 34. The method of claim 33,comprising maintaining, by the logical sub-unit, context informationthat is consistent with corresponding context information of a pluralityof other logical sub-units that make up the single distributed logicalunit.
 35. The method of claim 34, wherein maintaining contextinformation includes: implementing an instance of a global task set forthe logical sub-unit to queue commands and task management functionsthat modify context information; and coordinating entry of commands intothe global task set such that each instance of the global task set isconsistent with each other instance of the global task set.
 36. Themethod of claim 33, comprising: implementing, by the protocol module, aplurality of virtual target ports, wherein each of the plurality ofvirtual target ports is associated with a single physical target port ofthe storage server node; and presenting the plurality of virtual targetports to the host.
 37. The method of claim 33, wherein maintainingconsistency between each of the plurality of storage server nodesincludes: causing, by a quorum manager, the cluster transaction managerto originate a heartbeat proposal to each storage server node in thestorage cluster; and receiving, from the cluster transaction manager, aresponse to the heartbeat proposal; determining, by the quorum managerbased on the response to the heartbeat proposal, anin-quorum/out-of-quorum status of each storage server node in thestorage cluster; and updating each storage server node with a data setidentifying the storage server nodes that are in-quorum.
 38. The methodof claim 33, wherein the multi-phase voting process includes: receivinga proposal to perform an operation from a proposing entity of a groupaffected by the operation; forwarding the proposal to each entity in thegroup to be affected by the operation; determining whether an acceptanceof the transaction has been received from each entity in the group to beaffected by the operation; and deciding whether to commit the operationbased on a result of the determining.